<?php
namespace yunj\control\field;

class Password extends YunjField {

    private static $instance;

    public static function instance(){
        if (!self::$instance instanceof self){
            self::$instance = new self();
        }
        return self::$instance;
    }

    protected function defineExtraArgs(){
        return [
            'placeholder' => '',    // 占位符（可选）
            'readonly' => false,     // 只读
        ];
    }

}